package com.tensquare.user.controller;

import com.tensquare.user.service.QaClient;
import entity.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Berret
 * @date 2019/4/25 15:02
 * @discription :
 */
@Controller
public class QaController {

    @Autowired
    private QaClient qaClient;

    @GetMapping(value = "problem")
    @ResponseBody
    public Result findAll(){
        System.out.println(qaClient.findAll().getData());
        return qaClient.findAll();
    }
}
